<%-- 
    Document   : Delete
    Created on : Dec 8, 2012, 1:11:50 PM
    Author     : ITCreed
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Delete book</title>
        <%@include file="../LayoutAdmin/InHead.jsp" %>
    </head>
    <body>
        <div id="horizontal_bar">
            <div id="wrapper">
                <%@include file="../LayoutAdmin/Top.jsp" %>
                <div id="middle">
                    <%@include file="../LayoutAdmin/Middle_Top.jsp" %>
                    <div class="left">
                        <div class="menuitem_ulstyle_vertical">
                            <ul>
                                <li>
                                    <a href="Add.jsp">Thêm</a>
                                </li>
                                <li>
                                    <a href="Delete.jsp">Xóa</a>
                                </li>
                                <li>
                                    <a href="Search.jsp">Tra cứu</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="bar_bt_lr"></div>
                    <div class="right">
                        <form action="../../DeleteBookServlet" method="POST">
                        <h1>Xóa Sách</h1>
                        <%
                            
                            if (request.getQueryString() != null)
                            {
                                String result = request.getQueryString();
                                if (result.split("=")[0].equals("result"))
                                {
                                    if (result.split("=")[1].equals("true"))
                                    {
                                        %>
                                        <h4>Xóa sách thành công</h4>
                                        <%
                                    }
                                    else
                                    {
                                        %>
                                        <h4>Xóa sách thất bại</h4>
                                        <%
                                    }
                                }
                            }
                        %>
                        <table class="Table3">
                            <tr>
                                <td>Mã sách :</td>
                                <td>
                                    <input type="text" name="txtISBN" value="" size="25" />
                                </td>
                            </tr>
                            <tr>
                                <th colspan="2">
                                    <input type="submit" value="Xóa" name="btnDelete" class="Button1"/>
                                </th>
                            </tr>
                        </table>
                        </form>
                    </div>
                </div>
                <%@include file="../LayoutUser/Bottom.jsp" %>
            </div>
        </div>
    </body>
</html>

